<?
define('_AOW93KKDIEQ',true);
include("includes/config.php");


$act=  isset($_GET['opt'])        ?    $_GET['opt']     : "idx";
$id=  isset($_GET['id'])        ?    intval($_GET['id']): "0";
$name=  isset($_GET['name'])      ?    $_GET['name']    : "";
$app=  isset($_GET['app'])      ?    true   : false;


//check status and return;
GetSupportInfo($name);

if($act=="image")
{
	$expires = 60*5*1*1;
	if(isset($timecacheimg))$expires=$timecacheimg;
	header("Pragma: public");
	header("Cache-Control: maxage=".$expires);
	header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
	header("content-type: image/gif");
	if($hasOnline==true)
	{
		echo file_get_contents("images/livechaton.png");
	}else 
	{
		echo file_get_contents("images/livechat.png");
	}
	exit;
}
if($hasOnline==true)
{
	echo 1;
}else 
{
	echo 0;
}
?>